import filters from './filters'

export default {
    filter(name, fn) {
        if (!fn) return filters[name]
        filters[name] = fn
    }
}